package com.cmict.data.bpm.convert.definition;

import com.cmict.data.framework.common.pojo.PageResult;
import com.cmict.data.bpm.controller.admin.definition.vo.task.TaskVariableCreateReqVO;
import com.cmict.data.bpm.controller.admin.definition.vo.task.TaskVariableRespVO;
import com.cmict.data.bpm.controller.admin.definition.vo.task.TaskVariableUpdateReqVO;
import com.cmict.data.bpm.dal.dataobject.definition.TaskVariableDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 流程变量 Convert
 *
 * @author liutao
 * @date 2022/6/6
 */
@Mapper
public interface TaskVariableConvert {

    TaskVariableConvert INSTANCE = Mappers.getMapper(TaskVariableConvert.class);

    TaskVariableDO convert(TaskVariableCreateReqVO bean);

    TaskVariableDO convert(TaskVariableUpdateReqVO bean);

    TaskVariableRespVO convert(TaskVariableDO bean);

    List<TaskVariableRespVO> convertList(List<TaskVariableDO> list);

    PageResult<TaskVariableRespVO> convertPage(PageResult<TaskVariableDO> page);

}
